package com.yqRecite.controller;

import com.yqRecite.util.result.Result;
import com.yqRecite.util.result.ResultUtil;
import com.yqRecite.vo.TestUserVo;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;

@CrossOrigin
@RestController
@RequestMapping("test")
public class TestController {
    @RequestMapping("requestValue")
    public Result requireValue(@RequestBody TestUserVo testUserVo){
        System.out.println(testUserVo.toString());
        System.out.println(Arrays.toString(testUserVo.getBannerList()));
        return ResultUtil.ok(testUserVo);
    }
}
